package lesson19;

import java.util.Scanner;

public class NotepadDemo {

	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		//Page p = new Page("New Page");
		//String text = sc.nextLine();
		//p.addText(text);
		//System.out.println(p.getText());
		//p.deleteText();
		//System.out.println(p.getText());
		
		//SimpleNotepad np = new SimpleNotepad(5, sc);
		
		//np.addTextToPage(1, "lalala");
		//np.addTextToPage(12, null);
		//np.printAllPages();
		//np.changeTextOfPage(1, "nanana");
		//np.printAllPages();
		//np.deleteTextFromPage(np.getPage(1));
		//np.printAllPages();
		
		ISecuredNotepad snp = new SecuredNotepad(2, sc);
		snp.addTextToPage(1, "lalala");
		snp.printAllPages();
		snp.changeTextOfPage(1, "nanana");
		snp.printAllPages();
		snp.deleteTextFromPage(snp.getPage(1));
		snp.printAllPages();
	}

}
